﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.UI;

using AjaxControlToolkit;

[assembly: System.Web.UI.WebResource("SCS.Web.UI.WebControls.ElementOverlayBehavior.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("SCS.Web.UI.WebControls.ElementOverlayBehavior.debug.js", "text/javascript")]

namespace SCS.Web.UI.WebControls
{
    [RequiredScript(typeof(CommonToolkitScripts))]
    [ClientScriptResource("SCS.ElementOverlayBehavior", "SCS.Web.UI.WebControls.ElementOverlayBehavior.js")]
    [TargetControlType(typeof(Control))]
    public class ElementOverlayExtender : DynamicPopulateExtender
    {        
        [ExtenderControlProperty]
        [IDReferenceProperty]
        public string CoverElementId
        {
            get { return GetPropertyValue("CoverElementId", ""); }
            set { SetPropertyValue("CoverElementId", value); }
        }

        [ExtenderControlProperty]        
        public string TriggerShowingText
        {
            get { return GetPropertyValue("TriggerShowingText", ""); }
            set { SetPropertyValue("TriggerShowingText", value); }
        }

        [ExtenderControlProperty]
        public string TriggerHidingText
        {
            get { return GetPropertyValue("TriggerHidingText", ""); }
            set { SetPropertyValue("TriggerHidingText", value); }
        }

        [ExtenderControlProperty]
        public string BackgroundCssClass
        {
            get { return GetPropertyValue("BackgroundCssClass", ""); }
            set { SetPropertyValue("BackgroundCssClass", value); }
        }


        [ExtenderControlProperty]
        public string ShownScript
        {
            get { return GetPropertyValue("ShownScript", ""); }
            set { SetPropertyValue("ShownScript", value); }
        }

        [ExtenderControlProperty]
        public string HiddenScript
        {
            get { return GetPropertyValue("HiddenScript", ""); }
            set { SetPropertyValue("HiddenScript", value); }
        }

        [ExtenderControlProperty]
        public string PopulatedScript
        {
            get { return GetPropertyValue("PopulatedScript", ""); }
            set { SetPropertyValue("PopulatedScript", value); }
        }

        [ExtenderControlProperty]
        public string PopulatingScript
        {
            get { return GetPropertyValue("PopulatingScript", ""); }
            set { SetPropertyValue("PopulatingScript", value); }
        }
    }
}
